package com.xxxx.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.server.pojo.Employee;
import com.xxxx.server.pojo.RespBean;
import com.xxxx.server.pojo.RespPageBean;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wuhao
 * @since 2021-11-22
 */
public interface IEmployeeService extends IService<Employee> {

    /**
     * 获取所有员工（分页）
     * @param currentPage
     * @param size
     * @param employee
     * @param startDate
     * @param endDate
     * @return
     */
    RespPageBean getEmployeeByPage(Integer currentPage, Integer size, Employee employee, String startDate, String endDate);

    RespBean getMaxWorkID();

    /**
     * 添加员工
     * @param employee
     */
    RespBean addEmp(Employee employee);

    /**
     * 导出员工表格
     * @param response
     */
    void getEmployee(Integer id, HttpServletResponse response);

    /**
     * 查询员工列表
     * @param id
     */
    List<Employee> getEmployeeList(Integer id);

    /**
     * 获取员工添加所需要的各种id
     * @param employeeMap
     * @return
     */
    Employee getIdSelectNationByName(Map<String, String> employeeMap);

    /**
     * 获取所有员工账套
     *
     * @param currentPage
     * @param pageSize
     * @return RespPageBean
     */
    RespPageBean getAllEmpSalary(Integer currentPage, Integer pageSize);



//    List<Employee> getEmployeeList(Integer id, HttpServletResponse response);
}
